package com.example.rabbitmqdemo.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2025-04-06
 * Time: 10:02
 */
@Configuration
public class OpsConfiguration {
    @Bean("quorumQueue")
    public Queue quorumQueue() {
        return QueueBuilder.durable("quorum.queue").quorum().build();
    }

    @Bean("clusterQueue")
    public Queue clusterQueue() {
        return QueueBuilder.durable("cluster.queue").quorum().build();
    }
}
